<!--
  Generated template for the SettingPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
  <ion-navbar color="gm-primary">
    <ion-title>设置</ion-title>
  </ion-navbar>
</ion-header>

<ion-content>
  <ion-list margin-top>
    <ion-item *ngFor="let item of setting_items" (click)="itemSelected(item.value)" tappable>
      <ion-label>{{item.title}}</ion-label>
      <div item-end *ngIf="item.content">{{item.content}}</div>
      <ion-toggle *ngIf="item.type == 2" [(ngModel)]="settings.data_update" (ionChange)="onDataUpdate()"></ion-toggle>
    </ion-item>
  </ion-list>
</ion-content>
